//
//  HunterDB.h
//  eye_hunter
//
//  Created by cherry on 10-9-26.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "PicTarget.h"
#import "PicMission.h"

@interface HunterDB : NSObject {
	NSString *databaseName;
	NSString *databasePath;
}

@property (nonatomic,retain) NSString *databaseName;
@property (nonatomic,retain) NSString *databasePath;


-(void) checkAndInitDatabase;
-(void) initDB;

-(NSMutableArray *) findAllMissions;
-(NSMutableArray *) findAllTargetInMission: (int) missionId;
-(NSMutableArray *) findRandomMissions:(int) count;
-(NSMutableArray *) findRandom:(int) count targetsInMission:(int) missionId;

@end
